package com.dingreading.cloud.soms.service;

import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.soms.dto.MemberCashDto;
import com.dingreading.cloud.soms.entity.MemberCash;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2024-07-19
 */
public interface MemberCashService extends IService<MemberCash> {

    Page<MemberCashDto> pageList(
            PageUtil pageUtil, String corpUid, String storeUid, String keyword, String memberUid, Integer type, String beginDate, String endDate
    );

    MemberCash getByUid(String storeUid, String uid);

    MemberCashDto dtoByUid(String storeUid, String uid);

    int deleteByUid(String storeUid, String uid);

    boolean updateInfo(String storeUid, String uid, Double money, String url, String payDate, String staffUid, String staffName) throws ParseException;

    // 获取会员最近一次的押金记录
    Map<String, Integer> lastByMemberUid(List<String> memberUidList);

}
